@model IEnumerable<SIOGDE.AccesoDatos.Entidades.Grado>
@{ ViewBag.Title = "Grado";}
<link href="~/Content/DataForm.css" rel="stylesheet"/>
<div class="box Common">
 <div class="header">
     Gestionar Grado
     <input type="button" class="btnCancel" value ="Cancelar y Regresar" onclick="history.go(-1);"/>
     @Html.ActionLink("Agregar Nuevo", "DataForm", null, new { @class= "button medium green", @style="float:right;"})
 </div>
 <table id="basictab" style="width:100%">
 <tr>
      <th>@Html.DisplayNameFor(model => model.Fuerza)</th>
      <th>@Html.DisplayNameFor(model => model.Codigo)</th>
      <th>@Html.DisplayNameFor(model => model.Nombre)</th>
      <th>@Html.DisplayNameFor(model => model.Descripcion)</th>
      <th>@Html.DisplayNameFor(model => model.NivelJerarquico)</th>
      <th>@Html.DisplayNameFor(model => model.NumAniosCambiaDestino)</th>
        <th></th></tr>
     @foreach (var item in Model)
     {<tr>
         <td>@Html.DisplayFor(modelItem => item.Fuerza.Nombre)</td>
         <td>@Html.DisplayFor(model => item.Codigo)</td>
         <td>@Html.DisplayFor(model => item.Nombre)</td>
         <td>@Html.DisplayFor(model => item.Descripcion)</td>
         <td>@Html.DisplayFor(model => item.NivelJerarquico)</td>
         <td>@Html.DisplayFor(model => item.NumAniosCambiaDestino)</td>
         <td>@Html.ActionLink("Editar", "DataForm", new { ide= Didsoft.Mvc.Security.WebUtils.Encrypt(item.Id.ToString())} , new { @class= "button medium yellow"})@Html.ActionLink("Eliminar", "Delete", new { ide= Didsoft.Mvc.Security.WebUtils.Encrypt(item.Id.ToString())} , new { @class= "button medium red"})</td>
     </tr>}
 </table><footer><input type="button" class="btnCancel" value ="Cancelar y Regresar" onclick="history.go(-1);"/></footer></div>

